<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-3.6.0.min.js"></script>
    <script>

        let a = 9

        function show() {
            document.getElementById("a01").innerText = a--;
            if (a == 0) {
                location.href = "https://www.baidu.com";
            }
        }

        setInterval(show, 1000)

    </script>
</head>
<body>
<div id="a01"></div>
</body>
</html>